<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../_css/default.css" rel="stylesheet" type="text/css" media="all" />
<title>Tackmanncup - SV Boostedt</title>
<script src="../_js/formularcheck.js" type="text/javascript"></script>
</head>

<?php 
// Freie Felder ermitteln
/* svb_goenner -> id int(3), saison varchar(8), name varchar(48), bild varchar(96) */
include('../class_sql.php');
$db = new Database();
$db->connect();
$db->select('ftv_turnier');
$res = $db->getResult();
$db->disconnect();
?>
<body>
<table width="100%" border="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="headline_text">Turnier anlegen:</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td><table border="0">
<form action="neues_turnier_anlegen.php" method="post" onsubmit="return pruefeFormular(this);">  
<!--  <tr>
    <td>Turnier:</td>
    <td>
        <select class="formularcheck" style="font-size:11px" name="turnier" size="1">
        	<?php
				foreach ($res as $value) {
                   	echo "<option value='".$value['id']."'>".$value['name']." - ".$value['jahr']."</option>";
                }
				echo "<option value='-1'>Neues Turnier anlegen</option>";
			?>
        </select>
    </td>
  </tr>-->
  <tr>
    <td>Name:</td>
    <td>
		<input class="formularcheck" style="font-size:11px" width="250" height="12"  type="text" name="turniername" size="64"><br>
    </td>
  </tr>
  <tr>
    <td>Kurz:</td>
    <td>
		<input class="formularcheck" style="font-size:11px" width="250" height="12"  type="text" name="turnierkurz" size="64"><br>
    </td>
  </tr>
  <tr>
    <td>Jahr:</td>
    <td>
		<input class="formularcheck" style="font-size:11px" width="250" height="12"  type="text" name="turnierjahr" size="64"><br>
    </td>
  </tr>
  <tr><td colspan="2"><hr></td></tr>
  <tr>
    <td>Vorrunde:</td>
    <td>
    	<select name="vorrunde_gruppen" size="1">
    		<option value="1">1. Gruppe</option>
    		<option value="2">2. Gruppen</option>
    		<option value="3">3. Gruppen</option>
    		<option value="4" selected>4. Gruppen</option>
    		<option value="5">5. Gruppen</option>
    		<option value="6">6. Gruppen</option>
    		<option value="7">7. Gruppen</option>
    		<option value="8">8. Gruppen</option>
    		<option value="-1">ohne</option>
        </select>
    </td>
  </tr>
  <tr>
    <td>Anzahl Mannschaften:</td>
    <td>
    	<select name="vorrunde_teams" size="1">
    		<option value="4">4. Mannschaften</option>
    		<option value="5">5. Mannschaften</option>
    		<option value="6" selected>6. Mannschaften</option>
    		<option value="7">7. Mannschaften</option>
    		<option value="8">8. Mannschaften</option>
        </select>
    </td>
  </tr>
  <tr><td colspan="2"><hr></td></tr>
  <tr>
    <td>Hauptrunde:</td>
    <td>
    	<select name="hauptrunde_gruppen" size="1">
    		<option value="1">1. Gruppe</option>
    		<option value="2" selected>2. Gruppen</option>
    		<option value="3">3. Gruppen</option>
    		<option value="4">4. Gruppen</option>
    		<option value="-1">ohne</option>
        </select>
    </td>
  </tr>
  <tr>
    <td>Anzahl Mannschaften:</td>
    <td>
    	<select name="hauptrunde_teams" size="1">
    		<option value="4" selected>4. Mannschaften</option>
    		<option value="5">5. Mannschaften</option>
    		<option value="6">6. Mannschaften</option>
    		<option value="7">7. Mannschaften</option>
    		<option value="8">8. Mannschaften</option>
        </select>
    </td>
  </tr>
  <tr><td colspan="2"><hr></td></tr>
  <tr>
    <td>Finalrunde:</td>
    <td>
    	<select name="finalrunde_gruppen" size="1">
    		<option value="1" selected>KO-Runde</option>
    		<option value="-1">ohne</option>
        </select>
    </td>
  </tr>
  <tr>
    <td>Anzahl Mannschaften:</td>
    <td>
    	<select name="finalrunde_teams" size="1">
    		<option value="4" selected>4. Mannschaften</option>
    		<option value="8">8. Mannschaften</option>
    		<option value="16">16. Mannschaften</option>
        </select>
    </td>
  </tr>
  <tr>
    <td valign="top">&nbsp;</td>
    <td>&nbsp;</td>
</tr>
  <tr><td colspan="2" align="center">
	  <table border="0" width="100%">
      	<tr>
        	<td width="50%" align="center">  
		        <input style="font-size:11px" type="submit" value="Turnier anlegen">    
            </td><td width="50%" align="center">
        		<input style="font-size:11px" type="reset" value="Zur&uuml;ck setzen">
            </td>
        </tr>
      </table>
               
      </td></tr> 
</form>  
</table></td>
  </tr>
  <tr>
    <td><p>&nbsp;</p></td>
  </tr>
</table>
</body>
</html>
